classdef ParticipationCostDistribution < handle

    properties
        mu_part_M
        sigma_part_M
        mu_part_R
        sigma_part_R
        mu_part_C
        sigma_part_C    
    end

    methods
        
        function self = ParticipationCostDistribution(par)
            self.mu_part_M = par.mu_part_M;
            self.sigma_part_M = par.sigma_part_M;
            self.mu_part_R = par.mu_part_R;
            self.sigma_part_R = par.sigma_part_R;
            self.mu_part_C = par.mu_part_C;
            self.sigma_part_C = par.sigma_part_C;
        end
   
        
        function out = G_M(self, phi)
            out = normcdf(phi, self.mu_part_M, self.sigma_part_M);
        end

        
        function out = G_R(self, phi)
            out = normcdf(phi, self.mu_part_R, self.sigma_part_R);
        end
        
        
        function out = G_C(self, phi)
            out = normcdf(phi, self.mu_part_C, self.sigma_part_C);
        end        


        function out = g_M(self, phi)
            out = normpdf(phi, self.mu_part_M, self.sigma_part_M);
        end

        
        function out = g_R(self, phi)
            out = normpdf(phi, self.mu_part_R, self.sigma_part_R);
        end
        
        
        function out = g_C(self, phi)
            out = normpdf(phi, self.mu_part_C, self.sigma_part_C);
        end          
        
    end
end